//
//  MainTabBarButton.m
//  weather
//
//  Created by 大L君的无敌战舰 on 16/3/31.
//  Copyright © 2016年 bigL.com. All rights reserved.
//

#import "MainTabBarButton.h"

@implementation MainTabBarButton

-(void)setHighlighted:(BOOL)highlighted
{
    
}

/**
 *  自定义自动布局
 */
-(void)layoutSubviews
{
    [super layoutSubviews];
    
    //设置imageView
    self.imageView.bounds = CGRectMake(0, 0, 27, 23);
    self.imageView.layer.anchorPoint = CGPointMake(0.5, 1);        //修改锚点
    self.imageView.layer.position = CGPointMake(self.width * 0.5, self.height *0.65);
    
    //设置titleLabel
    self.titleLabel.layer.anchorPoint = CGPointMake(0.5, 0);
    self.titleLabel.layer.position = CGPointMake(self.width * 0.5, self.height *0.65);
    [self.titleLabel setFont:[UIFont systemFontOfSize:12]]; //字体大小
   
}

@end
